module.exports = app => {
    const { STRING, INTEGER, DATE } = app.Sequelize;

    const User = app.model.define('users', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        name: STRING(30),
        user: STRING(30),
        password: STRING(30),
        createdAt: DATE,
        updatedAt: DATE
    });

    return User;
};
